/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package upeu.cepre.model;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Elvis Zangetsu
 */
@Entity
@Table(name = "detallealumnopago")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Detallealumnopago.findAll", query = "SELECT d FROM Detallealumnopago d"),
    @NamedQuery(name = "Detallealumnopago.findByIdDetalleAlumnoPago", query = "SELECT d FROM Detallealumnopago d WHERE d.idDetalleAlumnoPago = :idDetalleAlumnoPago"),
    @NamedQuery(name = "Detallealumnopago.findByIdDetallePeriodoAlumno", query = "SELECT d FROM Detallealumnopago d WHERE d.idDetallePeriodoAlumno = :idDetallePeriodoAlumno"),
    @NamedQuery(name = "Detallealumnopago.findByIdDetallePeriodoPago", query = "SELECT d FROM Detallealumnopago d WHERE d.idDetallePeriodoPago = :idDetallePeriodoPago")})
public class Detallealumnopago implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idDetalleAlumnoPago")
    private String idDetalleAlumnoPago;
    @Column(name = "idDetallePeriodoAlumno")
    private String idDetallePeriodoAlumno;
    @Column(name = "idDetallePeriodoPago")
    private String idDetallePeriodoPago;

    public Detallealumnopago() {
    }

    public Detallealumnopago(String idDetalleAlumnoPago) {
        this.idDetalleAlumnoPago = idDetalleAlumnoPago;
    }

    public String getIdDetalleAlumnoPago() {
        return idDetalleAlumnoPago;
    }

    public void setIdDetalleAlumnoPago(String idDetalleAlumnoPago) {
        this.idDetalleAlumnoPago = idDetalleAlumnoPago;
    }

    public String getIdDetallePeriodoAlumno() {
        return idDetallePeriodoAlumno;
    }

    public void setIdDetallePeriodoAlumno(String idDetallePeriodoAlumno) {
        this.idDetallePeriodoAlumno = idDetallePeriodoAlumno;
    }

    public String getIdDetallePeriodoPago() {
        return idDetallePeriodoPago;
    }

    public void setIdDetallePeriodoPago(String idDetallePeriodoPago) {
        this.idDetallePeriodoPago = idDetallePeriodoPago;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idDetalleAlumnoPago != null ? idDetalleAlumnoPago.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Detallealumnopago)) {
            return false;
        }
        Detallealumnopago other = (Detallealumnopago) object;
        if ((this.idDetalleAlumnoPago == null && other.idDetalleAlumnoPago != null) || (this.idDetalleAlumnoPago != null && !this.idDetalleAlumnoPago.equals(other.idDetalleAlumnoPago))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "upeu.cepre.model.Detallealumnopago[ idDetalleAlumnoPago=" + idDetalleAlumnoPago + " ]";
    }
    
}
